import request from '@/utils/request'

// 查询检测计划列表
export function listJcjh(query) {
  return request({
    url: '/event/jcjh/list',
    method: 'get',
    params: query
  })
}

export function queryJc(query) {
  return request({
    url: '/event/jcjh/query',
    method: 'post',
    data: query
  })
}

export function getJcPlan(sjskId) {
  return request({
    url: '/event/jcjh/generateJcPlanList',
    method: 'get',
    params: {
      sjskId
    }
  })
}

// 查询检测计划详细
export function getJcjh(jcjhId) {
  return request({
    url: '/event/jcjh/' + jcjhId,
    method: 'get'
  })
}

// 新增检测计划
export function addJcjh(data) {
  return request({
    url: '/event/jcjh',
    method: 'post',
    data: data
  })
}

// 修改检测计划
export function updateJcjh(data) {
  return request({
    url: '/event/jcjh',
    method: 'put',
    data: data
  })
}

// 删除检测计划
export function delJcjh(jcjhId) {
  return request({
    url: '/event/jcjh/' + jcjhId,
    method: 'delete'
  })
}
